package org.javastudy.tang.lambda.hello;

/**
 * <p><em>Created on 2022/5/9 3:14 下午</em></p>
 *
 * @author fuzhongtang
 * @since 1.0.1
 */
public class HelloLambda {
    public static void main(String[] args) {
        //HelloFunction中要存在一个同样类型和同样返回值的函数
        HelloFunction helloFunction = () -> System.out.println("hello world!");
        helloFunction.foo();
    }
}
